<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta name="nav" content="2" />
<meta name="acc" content="3-1" />
<title>统计列表</title>
<script type="text/javascript">
$(document).ready(function(){
	$("#startdate").addClass("Wate").bind("click",function(){
		WdatePicker({skin:'whyGreen',minDate:'1900-10-01', dateFmt:'yyyy-MM-dd '});});
	$("#enddate").addClass("Wate").bind("click",function(){
		WdatePicker({skin:'whyGreen',minDate:'#F{$dp.$D(\'startdate\')}', dateFmt:'yyyy-MM-dd '});});
})
</script>
</head>
<body>
<div id="heading" class=""><h6>统计列表</h6></div>
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<form action="${ctx }/human/leave_overtime!list.action" method="post" class="yform" id="mainForm">
<div id="filter">
<ul>
	<li>申请部门:<pt:labels type="insideOrgDept" prompt="全部" name="filter_LIKES_deptid" default="${param['filter_LIKES_deptid'] }"></pt:labels></li>
	<li>开始时间:<input id="startdate" type="text" name="filter_GED_startdate" value="${param['filter_GED_startdate'] }"></li>
	<li>结束时间:<input id="enddate" type="text" name="filter_LED_enddate" value="${param['filter_LED_enddate'] }"></li>
</ul>
<div class="type-button"><input type="button" value="查询" class="search" onclick="search();"></div>
</div>

<div id="content">
	<table class="contentTable">
		<tr>
			<th><a id="createDate" href="javascript:sort('createDate','asc')">序号</a></th>
			<th><a id="userid" href="javascript:sort('userid','asc')">姓名</a></th>
			<th><a id="deptid" href="javascript:sort('deptid','asc')">申请部门</a></th>
			<th><a id="ldate" href="javascript:sort('ldate','asc')">请(休)假时间</a></th>
			<th><a id="odate" href="javascript:sort('odate','asc')">加班时间</a></th>
			<th>加班请假情况</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${lotMap}"  var="lot"  varStatus="status">
		<c:set var="leaveoverMap" value="${lot.value}"/>
		<tr>
		<td>${status.count}</td>
			<td><pt:labels type="user" argument1="${leaveoverMap['userid']}"
								single="true"></pt:labels></td>
			<td><pt:labels type="dept" single="true" argument1="${leaveoverMap.deptid}"></pt:labels></td>
			<td>${leaveoverMap["ldate"] }</td>
			<td>${leaveoverMap["odate"] }</td>
			<td>总计加班天数:${leaveoverMap["odate"]-leaveoverMap["ldate"] }</td>	
			<td><a href="${ctx }/human/leave_overtime!excelOutLeaveOvertime.action">导出Excel</a></td>		
		</tr>
		</c:forEach>
	</table>

</div>

</form>	
</body>
